package com.ice.work.moment.socket.service;

import com.honeybee.cloud.framework.base.exception.business.BaseBizException;
import com.ice.work.moment.facade.socket.dto.PushAuthorizationDTO;
import com.ice.work.moment.facade.socket.model.PushAuthorization;
import com.ice.work.moment.facade.socket.params.LoginParam;

/**
 * @Description 凭证
 * @Author DELL
 * @Create 2019-04-17
 * @Since 1.0.0
 */
public interface IPushAuthorizationService {
    /**
     * 增加登录凭证
     *
     * @param pushAuthorization
     * @return
     * @throws BaseBizException
     */
     Boolean add(PushAuthorization pushAuthorization) throws BaseBizException;

    /**
     * 删除登录凭证
     *
     * @param id
     * @return
     * @throws BaseBizException
     */
    Boolean delete(Long id) throws BaseBizException;

    /**
     * 登录
     *
     * @param param
     * @return
     * @throws BaseBizException
     */
    PushAuthorizationDTO login(LoginParam param) throws BaseBizException;
}
